$(function() {
    var myChart = echarts.init(document.getElementById('hm_chart'));
    var option = {
        title : {
            text: '收益',
            subtext: ''
        },
        tooltip : {
            trigger: 'axis'
        },
        toolbox: {
            show : false,
            feature : {
                mark : {show: true},
                dataView : {show: true, readOnly: false},
                magicType : {show: true, type: ['line', 'bar', 'stack', 'tiled']},
                restore : {show: true},
                saveAsImage : {show: true}
            }
        },
        calculable : true,
        xAxis : [
            {
                type : 'category',
                boundaryGap : false,
                data : ['2014-07-25','2014-07-27','2014-07-28','2014-07-29','2014-07-30','2014-07-31','2014-08-01']
            }
        ],
        yAxis : [
            {
                type : 'value',
                axisLabel : {
                    formatter: '{value} %'
                },
                min: 4.3,
                max: 4.4,
                precision: 2
            }
        ],
        series : [
            {
                name:'七日年化',
                type:'line',
                smooth:true,
                symbol: 'emptyCircle',
                itemStyle: {normal: {areaStyle: {type: 'default'}}},
                data:[4.33, 4.35, 4.35, 4.37, 4.37, 4.36, 4.36]
            }
        ]
    };

    myChart.setOption(option);
});